home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 November / Pcwk1197.iso / LOTUS / Eng-ins / SMASTERS / APPROACH / SURFNET.MPR / SCRIPT / ApproachDoc / Edit Web Site / Body / txtWebsterBrowser.s (.txt) < prev    next >
Null Bytes Alternating  |  1997-01-09  |  2KB  |  36 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Click(Source As Textbox, X As Long, Y As Long, Flags As Long)
  5.  
  6. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7.  
  8. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9. Private Sub BindEvents(Byval Objectname_ As String)
  10.     Static Source As TEXTBOX
  11.     Set Source = Bind(Objectname_)
  12.     On Event Click From Source Call Click
  13. End Sub
  14.  
  15. '++LotusScript Development Environment:2:2:Click:1:12
  16. Sub Click(Source As Textbox, X As Long, Y As Long, Flags As Long)
  17.     Dim rval As Integer   'Return value    
  18.     
  19.     On Error 11026 Goto NoWebtrek
  20.     
  21.     strURL = "http://" & source.URL.text
  22.     If (Source.fldFirstDate.Text = "") Then
  23.         Source.fldFirstDate.Text = Str(Today())
  24.     End If
  25.     Source.fldLastDate.Text = Str(Today())
  26.     Set CurrentApplication.ActiveView = CurrentDocument.Webtrek~ Browser
  27.     rval = CurrentView.Body.oleWebtrek.LoadPage(strURL, 0)
  28.     Goto EndLoadPage
  29.     
  30. NoWebtrek:
  31.     
  32.     Messagebox "You don't have the WebTrek browser installed.  Go to Main Menu-Setup to install the WebTrek browser."
  33.     Resume EndLoadPage
  34.     
  35. EndLoadPage:
  36. End Sub